﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="RBOSS.WebUI.Register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:PlaceHolder runat="server" ID="ErrorMessage" Visible="false">
                        <p class="text-danger">
                            <asp:Literal runat="server" ID="FailureText" />
                        </p>
    </asp:PlaceHolder>
    <style>
        .form_row{
            float:left;
            width:460px!important;
        }
    </style>
 <div class="center_title_bar">Customer Registration</div>
      <div class="prod_box_big">
        <div class="center_prod_box_big">
          <div class="contact_form" style="padding-left:0px;">
            <div class="form_row">
                <label class="contact">User Email : </label>
                <asp:TextBox ID="txtUserEmail" runat="server" CssClass="contact_input"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" 
             ErrorMessage="User Name is Required!" 
             ControlToValidate="txtUserEmail" ValidationGroup="ValSave">
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="regexEmailValid" 
                runat="server" 
                ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                ControlToValidate="txtUserEmail" 
                ErrorMessage="Invalid Email Format" ValidationGroup="ValSave"></asp:RegularExpressionValidator>
           </div>
            <div class="form_row">
                <label class="contact">Password : </label>
             <asp:TextBox ID="txtPassword" runat="server"  CssClass="contact_input" TextMode="Password"></asp:TextBox>
             <asp:RequiredFieldValidator runat="server" 
             ErrorMessage="Password is Required!" 
             ControlToValidate="txtPassword" ValidationGroup="ValSave">
            </asp:RequiredFieldValidator>
            </div>

            <div class="form_row">
                <label class="contact">Confirm Password : </label>
             <asp:TextBox ID="txtConfirmPassword" runat="server"  CssClass="contact_input" TextMode="Password"></asp:TextBox>
             <asp:RequiredFieldValidator runat="server" Display="Dynamic"
             ErrorMessage="Password is Required!" 
             ControlToValidate="txtConfirmPassword" ValidationGroup="ValSave">
            </asp:RequiredFieldValidator>
            <asp:CompareValidator id="comparePasswords" 
              runat="server"
              ControlToCompare="txtPassword" ValidationGroup="ValSave"
              ControlToValidate="txtConfirmPassword"
              ErrorMessage="Password Mismatch!"
              Display="Dynamic" />
            </div>

            <div class="form_row">
                <label class="contact">First Name : </label>
             <asp:TextBox ID="txtFirstName"  CssClass="contact_input" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" 
             ErrorMessage="First Name is Required!" 
             ControlToValidate="txtFirstName" ValidationGroup="ValSave">
            </asp:RequiredFieldValidator>
            </div>
            <div class="form_row">
                  
        
            <label class="contact">Last Name : </label>
             <asp:TextBox ID="txtLastName" runat="server"  CssClass="contact_input"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" 
             ErrorMessage="Last Name is Required!" 
             ControlToValidate="txtLastName" ValidationGroup="ValSave">
            </asp:RequiredFieldValidator>
        
            </div>
        <div class="form_row">
        
            <label class="contact">Phone :</label> 
             <asp:TextBox ID="txtPhone" runat="server"  CssClass="contact_input"></asp:TextBox><br /><span style="color:GrayText; font-size:small">ex: 641-123-2314</span>
            <asp:RequiredFieldValidator runat="server" 
             ErrorMessage="Phone is Required!" 
             ControlToValidate="txtPhone" ValidationGroup="ValSave">
            </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ErrorMessage="Must be 10 digits" ForeColor="Red" ControlToValidate="txtPhone"
                ValidationExpression="^[0-9]{3}-[0-9]{3}-[0-9]{4}$" ValidationGroup="ValSave"></asp:RegularExpressionValidator>

            
        
            </div>
              <div class="form_row">
        
            <label class="contact">City : </label>
             <asp:TextBox ID="txtCity" runat="server"  CssClass="contact_input"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" 
             ErrorMessage="City is Required!" 
             ControlToValidate="txtCity" ValidationGroup="ValSave">
            </asp:RequiredFieldValidator>
        
                  </div>
              <div class="form_row">
        
            <label class="contact">State: </label>
             <asp:TextBox ID="txtProvience" runat="server"  CssClass="contact_input"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" 
             ErrorMessage="Sate is Required!" 
             ControlToValidate="txtProvience" ValidationGroup="ValSave">
            </asp:RequiredFieldValidator>
        
                  </div>
        <div class="form_row">
            <label class="contact">Country : </label>
             <asp:TextBox ID="txtCountry" runat="server"  CssClass="contact_input"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" 
             ErrorMessage="Country is Required!" 
             ControlToValidate="txtCountry" ValidationGroup="ValSave">
            </asp:RequiredFieldValidator>
        </div>
              <div class="form_row">
        
            <label class="contact">Postal Code :</label> 
             <asp:TextBox ID="txtPostalCode" runat="server"  CssClass="contact_input"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" 
             ErrorMessage="Postal Code is Required!" 
             ControlToValidate="txtPostalCode" ValidationGroup="ValSave">
            </asp:RequiredFieldValidator>
        
                  </div>
              <div class="form_row">
        
            
                <asp:Button ID = "btnRegister" CssClass="bigGreenButton" runat="server" Text="Register" ValidationGroup="ValSave" OnClick="btnRegister_Click"/>
            
        
                  </div>
        </div>
      </div>
    </div>
</asp:Content>
